# (1) 定义了一个菜单条目类
class Entry:
    def __init__(self):
        self.no = ''
        self.text = ''


class MenuManager:
    def __init__(self):
        # print('构造函数')
        pass

    def print_menu(self):
        # (2) 存储菜单数据
        e1 = Entry()
        e1.no = '1'
        e1.text = '增加学生信息'

        e2 = Entry()
        e2.no = '2'
        e2.text = '删除学生信息'

        menu = []
        menu.append(e1)
        menu.append(e2)

        # (3) 打印菜单
        print('*****菜单开始*****')

        for item in menu:
            print(item.no, item.text)

        print('*****菜单结束*****')


manager = MenuManager()
manager.print_menu()

